<div class="head">
  <h2>收货地址</h2>
  <hr/>

  <button class="btn btn-default" ng-click="createAddress()">新增地址</button>
  <ul class="address-list" ng-show="addressList.length > 0">
    <li class="address-box" ng-repeat="address in addressList">
      <div class="list-head">
        <h4>{{address.name}} {{address.location}} <span class="glyphicon glyphicon-star-empty" ng-show="address.default"></span></h4>
        <div class="operation-group">
          <button type="button" class="btn btn-info" ng-click="editAddress(address.id)">编辑</button>
          <button type="button" class="btn btn-default" ng-click="delete(address.id)">删除</button>
        </div>
      </div>
      <hr/>
      <ul class="address-list-content">
        <li><span class="address-label">收货人:</span><span class="address-info">{{address.name}}</span></li>
        <li><span class="address-label">所在地区:</span><span class="address-info">
          {{address.district.province.name + '-' + address.district.city.name + '-' + address.district.region.name}}
        </span></li>
        <li><span class="address-label">详细地址:</span><span class="address-info">{{address.location}}</span></li>
        <li><span class="address-label">手机:</span><span class="address-info">{{address.phone}}</span></li>
        <li><span class="address-label">邮编:</span><span class="address-info">{{address.postcode}}</span></li>
      </ul>

    </li>
  </ul>
</div>